package com.shelpe.services.tenant.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shelpe.services.tenant.dao.AuthMapper;
import com.shelpe.services.tenant.model.Auth;
import com.shelpe.services.tenant.model.AuthExample;
import com.shelpe.services.tenant.service.AuthService;

@Service
public class AuthServiceImpl implements AuthService{

	@Autowired
	private AuthMapper authMapper;
	
	@Override
	public List<Auth> getAuthByUserId(Long userId) {
		// TODO Auto-generated method stub
		AuthExample ex = new AuthExample();
		ex.createCriteria().andTaobaoUserIdEqualTo(userId);
		return authMapper.selectByExample(ex);
	}

}
